<?php
namespace App\Services\Sale;

use App\Services\Sale\Sale\SaleLogic;


class Sale
{
    // 广告位添加
    public function addSale($data)
    {
        ValidateSale::checkValidate($data, ['name', 'email', 'phone', 'type']);
        return (new SaleLogic())->addSale($data);
    }

    //营业员列表
    public function saleList(){
        return (new SaleLogic())->saleList();
    }

    //更新，离职
    public function updateSale($data){
        ValidateSale::checkValidate($data, ['name', 'email', 'phone', 'type']);
        return(new SaleLogic())->updateSale($data);
    }

    //解绑
    public function unbind($data){
        return(new SaleLogic())->unbind($data);
    }
}
